import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { PilotGameSharedModule } from '../../shared';
import {
    KindService,
    KindPopupService,
    KindComponent,
    KindDetailComponent,
    KindDialogComponent,
    KindPopupComponent,
    KindDeletePopupComponent,
    KindDeleteDialogComponent,
    kindRoute,
    kindPopupRoute,
    KindResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...kindRoute,
    ...kindPopupRoute,
];

@NgModule({
    imports: [
        PilotGameSharedModule,
        RouterModule.forRoot(ENTITY_STATES, { useHash: true })
    ],
    declarations: [
        KindComponent,
        KindDetailComponent,
        KindDialogComponent,
        KindDeleteDialogComponent,
        KindPopupComponent,
        KindDeletePopupComponent,
    ],
    entryComponents: [
        KindComponent,
        KindDialogComponent,
        KindPopupComponent,
        KindDeleteDialogComponent,
        KindDeletePopupComponent,
    ],
    providers: [
        KindService,
        KindPopupService,
        KindResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class PilotGameKindModule {}
